P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
checked_array< S, T > Class Template Reference
Inheritance diagram for checked_array< S, T >:
[legend]

Public Member Functions

template<class U>
 checked_array (const std::initializer_list< U > &v)
 
template<class U>
 checked_array (U v)
 
T * begin ()
 
bool disable ()
 
bool disable_if_reset_value ()
 
bool disable_if_unmodified ()
 
bool disable_if_zero ()
 
bool disabled () const
 
void enable ()
 
T * end ()
 
bool modified () const
 
T & operator[] (size_t idx)
 
const T & operator[] (size_t idx) const
 
void set_modified (bool v=true)
 
size_t size () const
 

Member Function Documentation

◆ begin()

template<size_t S, typename T>
T * checked_array< S, T >::begin ( )
inlinevirtual

◆ disable()

template<size_t S, typename T>
bool checked_array< S, T >::disable ( )
inlinevirtual

◆ disable_if_zero()

template<size_t S, typename T>
bool checked_array< S, T >::disable_if_zero ( )
inlinevirtual

◆ disabled()

template<size_t S, typename T>
bool checked_array< S, T >::disabled ( ) const
inlinevirtual

◆ enable()

template<size_t S, typename T>
void checked_array< S, T >::enable ( )
inlinevirtual

◆ end()

template<size_t S, typename T>
T * checked_array< S, T >::end ( )
inlinevirtual

◆ modified()

template<size_t S, typename T>
bool checked_array< S, T >::modified ( ) const
inlinevirtual

◆ operator[]() [1/2]

template<size_t S, typename T>
T & checked_array< S, T >::operator[] ( size_t idx)
inlinevirtual

◆ operator[]() [2/2]

template<size_t S, typename T>
const T & checked_array< S, T >::operator[] ( size_t idx) const
inlinevirtual

◆ set_modified()

template<size_t S, typename T>
void checked_array< S, T >::set_modified ( bool v = true)
inlinevirtual

◆ size()

template<size_t S, typename T>
size_t checked_array< S, T >::size ( ) const
inlinevirtual