Inviwo  0.9.10.1
Inviwo documentation
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
 
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
 
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)
 

Additional Inherited Members

- Public Types inherited from inviwo::Data< BufferBase, BufferRepresentation >
using self = BufferBase
 
using repr = BufferRepresentation
 
- Static Public Attributes inherited from inviwo::BufferBase
static uvec3 colorCode = uvec3(255, 113, 0)
 
static const std::string classIdentifier = "org.inviwo.Buffer"
 
static const std::string dataName = "Buffer"
 
- Protected Member Functions inherited from inviwo::Data< BufferBase, BufferRepresentation >
 Data (const Data< BufferBase, BufferRepresentation > &rhs)
 
Data< BufferBase, BufferRepresentation > & operator= (const Data< BufferBase, BufferRepresentation > &rhs)
 
const T * getValidRepresentation () const
 
void copyRepresentationsTo (Data< BufferBase, BufferRepresentation > *targetData) const
 
std::shared_ptr< BufferRepresentationaddRepresentationInternal (std::shared_ptr< BufferRepresentation > representation) const
 
- Protected Attributes inherited from inviwo::BufferBase
size_t defaultSize_
 
BufferUsage usage_
 
BufferTarget target_
 
const DataFormatBasedefaultDataFormat_
 
- Protected Attributes inherited from inviwo::Data< BufferBase, BufferRepresentation >
std::mutex mutex_
 
std::unordered_map< std::type_index, std::shared_ptr< BufferRepresentation > > representations_
 
std::shared_ptr< BufferRepresentationlastValidRepresentation_
 

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