Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::array< char, N > Class Template Reference

#include <array.hpp>

Public Types

typedef char T
 

Public Member Functions

 array ()
 
Tbegin ()
 
const Tbegin () const
 
const Tend () const
 
size_t size () const
 
Tat (size_t pos)
 
const Tat (size_t pos) const
 

Public Attributes

T data [N]
 

Detailed Description

template<size_t N>
class fc::array< char, N >

provided for default 0 init

Definition at line 67 of file array.hpp.

Member Typedef Documentation

◆ T

template<size_t N>
char fc::array< char, N >::T

Definition at line 70 of file array.hpp.

Constructor & Destructor Documentation

◆ array()

template<size_t N>
fc::array< char, N >::array ( )
inline

Definition at line 71 of file array.hpp.

71{ memset( data, 0, sizeof(data) ); }
memset(pInfo->slotDescription, ' ', 64)
Here is the call graph for this function:

Member Function Documentation

◆ at() [1/2]

template<size_t N>
T & fc::array< char, N >::at ( size_t pos)
inline

Checked indexing (when in debug build) that also simplifies dereferencing when you have an array<T,N>*.

Definition at line 77 of file array.hpp.

77{ FC_ASSERT( pos < N, "array out-of-bounds" ); return data[pos]; }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
const int N
Definition quantize.cpp:54

◆ at() [2/2]

template<size_t N>
const T & fc::array< char, N >::at ( size_t pos) const
inline

Definition at line 78 of file array.hpp.

78{ FC_ASSERT( pos < N, "array out-of-bounds" ); return data[pos]; }

◆ begin() [1/2]

template<size_t N>
T * fc::array< char, N >::begin ( )
inline

Definition at line 81 of file array.hpp.

81{ return &data[0]; }

◆ begin() [2/2]

template<size_t N>
const T * fc::array< char, N >::begin ( ) const
inline

Definition at line 82 of file array.hpp.

82{ return &data[0]; }

◆ end()

template<size_t N>
const T * fc::array< char, N >::end ( ) const
inline

Definition at line 83 of file array.hpp.

83{ return &data[N]; }

◆ size()

template<size_t N>
size_t fc::array< char, N >::size ( ) const
inline

Definition at line 85 of file array.hpp.

85{ return N; }

Member Data Documentation

◆ data

template<size_t N>
T fc::array< char, N >::data[N]

Definition at line 87 of file array.hpp.


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