NSVD Reader  0.0.1
nodamushi::svd::Registers< STR > Struct Template Reference

<register> or <cluster> list. iterable. Holds register and cluster in the order they appear in the SVD file. More...

#include <Cluster.hpp>

Inheritance diagram for nodamushi::svd::Registers< STR >:

Public Types

using rc_t = ::nodamushi::svd::reg_or_cluster< Register< STR >, Cluster< STR > >
 
using reg_t = typename rc_t::reg_t
 
using clu_t = typename rc_t::clu_t
 
using iterator = typename std::vector< rc_t >::iterator
 
using const_iterator = typename std::vector< rc_t >::const_iterator
 

Public Member Functions

size_t length () const
 return count of <register> or <cluster> More...
 
size_t size () const
 return count of <register> or <cluster> More...
 
rc_toperator[] (size_t i)
 get <register> or <cluster> More...
 
const rc_toperator[] (size_t i) const
 get <register> or <cluster> More...
 
 Registers ()=default
 
 Registers (Registers< STR > &&)=default
 
 Registers (const Registers< STR > &r)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Public Attributes

std::vector< rc_tregisters
 <register> or <cluster> list More...
 

Detailed Description

template<typename STR>
struct nodamushi::svd::Registers< STR >

<register> or <cluster> list. iterable. Holds register and cluster in the order they appear in the SVD file.

See also
nodamushi::svd::Peripheral
nodamushi::svd::Cluster

Definition at line 44 of file Cluster.hpp.

Member Typedef Documentation

◆ clu_t

template<typename STR>
using nodamushi::svd::Registers< STR >::clu_t = typename rc_t::clu_t

Definition at line 48 of file Cluster.hpp.

◆ const_iterator

template<typename STR>
using nodamushi::svd::Registers< STR >::const_iterator = typename std::vector<rc_t>::const_iterator

Definition at line 73 of file Cluster.hpp.

◆ iterator

template<typename STR>
using nodamushi::svd::Registers< STR >::iterator = typename std::vector<rc_t>::iterator

Definition at line 72 of file Cluster.hpp.

◆ rc_t

template<typename STR>
using nodamushi::svd::Registers< STR >::rc_t = ::nodamushi::svd::reg_or_cluster<Register<STR>,Cluster<STR> >

Definition at line 46 of file Cluster.hpp.

◆ reg_t

template<typename STR>
using nodamushi::svd::Registers< STR >::reg_t = typename rc_t::reg_t

Definition at line 47 of file Cluster.hpp.

Constructor & Destructor Documentation

◆ Registers() [1/3]

template<typename STR>
nodamushi::svd::Registers< STR >::Registers ( )
default

◆ Registers() [2/3]

template<typename STR>
nodamushi::svd::Registers< STR >::Registers ( Registers< STR > &&  )
default

◆ Registers() [3/3]

template<typename STR>
nodamushi::svd::Registers< STR >::Registers ( const Registers< STR > &  r)
inline

Definition at line 62 of file Cluster.hpp.

Member Function Documentation

◆ begin() [1/2]

template<typename STR>
iterator nodamushi::svd::Registers< STR >::begin ( )
inline

Definition at line 75 of file Cluster.hpp.

◆ begin() [2/2]

template<typename STR>
const_iterator nodamushi::svd::Registers< STR >::begin ( ) const
inline

Definition at line 77 of file Cluster.hpp.

◆ end() [1/2]

template<typename STR>
iterator nodamushi::svd::Registers< STR >::end ( )
inline

Definition at line 76 of file Cluster.hpp.

◆ end() [2/2]

template<typename STR>
const_iterator nodamushi::svd::Registers< STR >::end ( ) const
inline

Definition at line 78 of file Cluster.hpp.

◆ length()

template<typename STR>
size_t nodamushi::svd::Registers< STR >::length ( ) const
inline

return count of <register> or <cluster>

Definition at line 50 of file Cluster.hpp.

◆ operator[]() [1/2]

template<typename STR>
rc_t& nodamushi::svd::Registers< STR >::operator[] ( size_t  i)
inline

get <register> or <cluster>

Definition at line 54 of file Cluster.hpp.

◆ operator[]() [2/2]

template<typename STR>
const rc_t& nodamushi::svd::Registers< STR >::operator[] ( size_t  i) const
inline

get <register> or <cluster>

Definition at line 56 of file Cluster.hpp.

◆ size()

template<typename STR>
size_t nodamushi::svd::Registers< STR >::size ( ) const
inline

return count of <register> or <cluster>

Definition at line 52 of file Cluster.hpp.

Member Data Documentation

◆ registers

template<typename STR>
std::vector<rc_t> nodamushi::svd::Registers< STR >::registers

<register> or <cluster> list

Definition at line 80 of file Cluster.hpp.


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