Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Buffer< T, Target > Class Template Reference
+ Inheritance diagram for inviwo::Buffer< T, Target >:

Public Member Functions

 Buffer (size_t size, BufferUsage usage=BufferUsage::Static)
 
 Buffer (BufferUsage usage)
 
 Buffer (std::shared_ptr< BufferRAMPrecision< T, Target > > repr)
 
 Buffer (const Buffer< T, Target > &rhs)=default
 
Buffer< T, Target > & operator= (const Buffer< T, Target > &that)=default
 
virtual Buffer< T, Target > * clone () const override
 
BufferRAMPrecision< T, Target > * getEditableRAMRepresentation ()
 
const BufferRAMPrecision< T, Target > * getRAMRepresentation () const
 
virtual void append (const BufferBase &) override
 
void append (const Buffer< T, Target > &)
 
virtual Document getInfo () const override
 
- Public Member Functions inherited from inviwo::BufferBase
 BufferBase (size_t defaultSize, const DataFormatBase *defaultFormat, BufferUsage usage, BufferTarget target)
 
 BufferBase (const BufferBase &rhs)=default
 
BufferBaseoperator= (const BufferBase &that)=default
 
void setSize (size_t size)
 
size_t getSize () const
 
bool empty () const
 
size_t getSizeInBytes () const
 
BufferUsage getBufferUsage () const
 
BufferTarget getBufferTarget () const
 
void setDataFormat (const DataFormatBase *format)
 
const DataFormatBasegetDataFormat () const
 
- Public Member Functions inherited from inviwo::Data< BufferBase, BufferRepresentation >
const T * getRepresentation () const
 
std::shared_ptr< const T > getRepresentationShared () const
 
T * getEditableRepresentation ()
 
bool hasRepresentation () const
 
bool hasRepresentations () const
 
void addRepresentation (std::shared_ptr< BufferRepresentation > representation)
 
void removeRepresentation (const BufferRepresentation *representation)
 
void removeOtherRepresentations (const BufferRepresentation *representation)
 
void clearRepresentations ()
 
void invalidateAllOther (const BufferRepresentation *repr)
 
void updateResource (const ResourceMeta &meta) const
 

Additional Inherited Members

- Public Types inherited from inviwo::Data< BufferBase, BufferRepresentation >
using self
 
using repr
 
- Static Public Attributes inherited from inviwo::BufferBase
static constexpr uvec3 colorCode {255, 113, 0}
 
static constexpr std::string_view classIdentifier {"org.inviwo.Buffer"}
 
static constexpr std::string_view dataName {"Buffer"}
 
- Protected Member Functions inherited from inviwo::Data< BufferBase, BufferRepresentation >
 Data (const Data< BufferBase, BufferRepresentation > &rhs)
 
 Data (Data< BufferBase, BufferRepresentation > &&rhs)=default
 
Data< BufferBase, BufferRepresentation > & operator= (const Data< BufferBase, BufferRepresentation > &that)
 
Data< BufferBase, BufferRepresentation > & operator= (Data< BufferBase, BufferRepresentation > &&that)=default
 
decltype(auto) getLastOr (F &&f, T &&fallback) const
 
void setLastAndInvalidateOther (F &&f, T &&value)
 
- Protected Attributes inherited from inviwo::BufferBase
size_t defaultSize_
 
BufferUsage usage_
 
BufferTarget target_
 
const DataFormatBasedefaultDataFormat_
 

Member Function Documentation

◆ append()

template<typename T , BufferTarget Target>
void inviwo::Buffer< T, Target >::append ( const BufferBase & buffer)
overridevirtual

Implements inviwo::BufferBase.

◆ clone()

template<typename T , BufferTarget Target>
Buffer< T, Target > * inviwo::Buffer< T, Target >::clone ( ) const
overridevirtual

Implements inviwo::BufferBase.

◆ getInfo()

template<typename T , BufferTarget Target>
Document inviwo::Buffer< T, Target >::getInfo ( ) const
overridevirtual

Implements inviwo::BufferBase.


The documentation for this class was generated from the following file: