Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Utils::AttribHandle< T > Class Template Reference

An attrib handle basically store an Index and a name. More...

#include <Core/Utils/Attribs.hpp>

+ Inheritance diagram for Ra::Core::Utils::AttribHandle< T >:
+ Collaboration diagram for Ra::Core::Utils::AttribHandle< T >:

Public Types

using value_type = T
 
using AttribType = Attrib<T>
 
using Container = typename Attrib<T>::Container
 

Public Member Functions

template<typename U >
bool operator== (const AttribHandle< U > &lhs) const
 
Index idx () const
 return the index of the attrib.
 
std::string attribName () const
 

Friends

class AttribManager
 

Detailed Description

template<typename T>
class Ra::Core::Utils::AttribHandle< T >

An attrib handle basically store an Index and a name.

Definition at line 145 of file Attribs.hpp.

Member Typedef Documentation

◆ AttribType

template<typename T >
using Ra::Core::Utils::AttribHandle< T >::AttribType = Attrib<T>

Definition at line 149 of file Attribs.hpp.

◆ Container

template<typename T >
using Ra::Core::Utils::AttribHandle< T >::Container = typename Attrib<T>::Container

Definition at line 150 of file Attribs.hpp.

◆ value_type

template<typename T >
using Ra::Core::Utils::AttribHandle< T >::value_type = T

Definition at line 148 of file Attribs.hpp.

Member Function Documentation

◆ attribName()

template<typename T >
std::string Ra::Core::Utils::AttribHandle< T >::attribName ( ) const
inline

return the name of the attrib. attrib name are unique in a given attribManager.

Definition at line 163 of file Attribs.hpp.

◆ idx()

template<typename T >
Index Ra::Core::Utils::AttribHandle< T >::idx ( ) const
inline

return the index of the attrib.

Definition at line 159 of file Attribs.hpp.

◆ operator==()

template<typename T >
template<typename U >
bool Ra::Core::Utils::AttribHandle< T >::operator== ( const AttribHandle< U > & lhs) const
inline

compare two handle, there are the same if they both represent the same attrib (type and value).

Definition at line 154 of file Attribs.hpp.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ AttribManager

template<typename T >
friend class AttribManager
friend

Definition at line 169 of file Attribs.hpp.


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