Katana Plug-in APIs 0.1
Public Types | Public Member Functions

Foundry::Katana::ConstVectorBase< T > Class Template Reference

Helper class used to wrap raw attribute data contained on the host side. More...

#include <FnConstVector.h>

Inheritance diagram for Foundry::Katana::ConstVectorBase< T >:
Foundry::Katana::ConstVector< T >

List of all members.

Public Types

typedef T value_type
typedef std::size_t size_type

Public Member Functions

 ConstVectorBase (const Attribute &attr, float t)
 ConstVectorBase (Attribute &&attr, float t)
size_type size () const
bool empty () const

Detailed Description

template<class T>
class Foundry::Katana::ConstVectorBase< T >

Helper class used to wrap raw attribute data contained on the host side.

There are several convenience typedefs of this class for the different Attribute types, which remove the template from ConstVectorBase: IntConstVectorBase, FloatConstVectorBase, DoubleConstVectorBase, StringConstVectorBase


Member Typedef Documentation

template<class T>
typedef std::size_t Foundry::Katana::ConstVectorBase< T >::size_type

Typedef of the sizetype

Reimplemented in Foundry::Katana::ConstVector< T >.

template<class T>
typedef T Foundry::Katana::ConstVectorBase< T >::value_type

Basic type of the data in ConstVectorBase

Reimplemented in Foundry::Katana::ConstVector< T >.


Constructor & Destructor Documentation

template<class T>
Foundry::Katana::ConstVectorBase< T >::ConstVectorBase ( const Attribute attr,
float  t 
) [inline]

Constructor for a ConstVectorBase that shares ownership of attr.

template<class T>
Foundry::Katana::ConstVectorBase< T >::ConstVectorBase ( Attribute &&  attr,
float  t 
) [inline]

Constructor for a ConstVectorBase that takes ownership of attr.


Member Function Documentation

template<class T>
bool Foundry::Katana::ConstVectorBase< T >::empty ( ) const [inline]

Returns false if the ConstVectorBase contains any data

Reimplemented in Foundry::Katana::ConstVector< T >.

template<class T>
size_type Foundry::Katana::ConstVectorBase< T >::size ( ) const [inline]

Returns the number of data elements

Reimplemented in Foundry::Katana::ConstVector< T >.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator