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

Public Member Functions

 alias_array (const std::initializer_list< T * > &v)
 
iterator begin ()
 
bool disable ()
 
bool disable_if_reset_value ()
 
bool disable_if_unmodified ()
 
bool disable_if_zero ()
 
bool disabled () const
 
void enable ()
 
iterator 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
 

Detailed Description

template<size_t S, typename T>
class alias_array< S, T >

Copyright (C) 2024 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Member Function Documentation

◆ begin()

template<size_t S, typename T>
iterator alias_array< S, T >::begin ( )
inlinevirtual

Implements alias_array_base< T >.

◆ disable()

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

Implements alias_array_base< T >.

◆ disable_if_zero()

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

Implements alias_array_base< T >.

◆ disabled()

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

Implements alias_array_base< T >.

◆ enable()

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

Implements alias_array_base< T >.

◆ end()

template<size_t S, typename T>
iterator alias_array< S, T >::end ( )
inlinevirtual

Implements alias_array_base< T >.

◆ modified()

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

Implements alias_array_base< T >.

◆ operator[]() [1/2]

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

Implements alias_array_base< T >.

◆ operator[]() [2/2]

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

Implements alias_array_base< T >.

◆ set_modified()

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

Implements alias_array_base< T >.

◆ size()

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

Implements alias_array_base< T >.