|
Katana Plug-in APIs 0.1
|
Helper class used to wrap raw attribute data contained on the host side, with a stl::vector style interface. More...
#include <FnConstVector.h>
Public Types | |
| typedef T | value_type |
| typedef const value_type * | const_iterator |
| typedef const value_type & | const_reference |
| typedef std::size_t | size_type |
Public Member Functions | |
| ConstVector (const Attribute &attr, float t) | |
| ConstVector (Attribute &&attr, float t) | |
| size_type | size () const |
| bool | empty () const |
| const_iterator | begin () const & |
| const_iterator | end () const & |
| const_reference | operator[] (size_type i) const & |
| const_reference | at (size_type i) const & |
| const_reference | front () const & |
| const_reference | back () const & |
| const value_type * | data () const & |
Helper class used to wrap raw attribute data contained on the host side, with a stl::vector style interface.
The data is immutable so only const references are available.
There are several convenience typedefs of this class for the different Attribute types, which remove the template from ConstVector: IntConstVector, FloatConstVector, DoubleConstVector, StringConstVector
| typedef const value_type* Foundry::Katana::ConstVector< T >::const_iterator |
Const iterator for the data type
| typedef const value_type& Foundry::Katana::ConstVector< T >::const_reference |
Const reference for the data type
| typedef std::size_t Foundry::Katana::ConstVector< T >::size_type |
Typedef of the sizetype
Reimplemented from Foundry::Katana::ConstVectorBase< T >.
| typedef T Foundry::Katana::ConstVector< T >::value_type |
Basic type of the data in ConstVectorBase
Reimplemented from Foundry::Katana::ConstVectorBase< T >.
| Foundry::Katana::ConstVector< T >::ConstVector | ( | const Attribute & | attr, |
| float | t | ||
| ) | [inline] |
Constructor for a ConstVector that shares ownership of attr.
| Foundry::Katana::ConstVector< T >::ConstVector | ( | Attribute && | attr, |
| float | t | ||
| ) | [inline] |
Constructor for a ConstVector that takes ownership of attr.
| const_reference Foundry::Katana::ConstVector< T >::at | ( | size_type | i | ) | const [inline] |
Individual element access read only
| const_reference Foundry::Katana::ConstVector< T >::back | ( | ) | const [inline] |
Returns a const reference to the last element
| const_iterator Foundry::Katana::ConstVector< T >::begin | ( | ) | const [inline] |
Returns an iterator at the beginning of the data
| const value_type* Foundry::Katana::ConstVector< T >::data | ( | ) | const [inline] |
Pointer to the raw data (read-only)
| bool Foundry::Katana::ConstVector< T >::empty | ( | ) | const [inline] |
Returns false if the ConstVector contains any data
Reimplemented from Foundry::Katana::ConstVectorBase< T >.
| const_iterator Foundry::Katana::ConstVector< T >::end | ( | ) | const [inline] |
Returns an iterator at the end of the data
| const_reference Foundry::Katana::ConstVector< T >::front | ( | ) | const [inline] |
Returns a const reference to the first element
| const_reference Foundry::Katana::ConstVector< T >::operator[] | ( | size_type | i | ) | const [inline] |
Individual element access read only
| size_type Foundry::Katana::ConstVector< T >::size | ( | ) | const [inline] |
Returns the number of data elements
Reimplemented from Foundry::Katana::ConstVectorBase< T >.
1.7.3