NSVD Reader  0.0.1
nodamushi::svd::normalized::normalizer< STRREF, STR, V > Struct Template Reference

#include <node_container.hpp>

Classes

struct  base
 
struct  c
 
struct  d
 
struct  e
 
struct  error
 
struct  f
 
struct  p
 
struct  r
 

Public Types

using names = std::unordered_set<::nodamushi::ref< std::string >, ::nodamushi::refhash< std::string > >
 
using did_t = typename dim_info::id_t
 dim_info.id type More...
 
using D = ::nodamushi::svd::normalized::Device< STRREF >
 
using P = ::nodamushi::svd::normalized::Peripheral< STRREF >
 
using C = ::nodamushi::svd::normalized::Cluster< STRREF >
 
using R = ::nodamushi::svd::normalized::Register< STRREF >
 
using F = ::nodamushi::svd::normalized::Field< STRREF >
 
using E = ::nodamushi::svd::normalized::Enumeration< STRREF >
 
using SD = const ::nodamushi::svd::Device< STR, V >
 
using SP = const ::nodamushi::svd::Peripheral< STR >
 
using SC = const ::nodamushi::svd::Cluster< STR >
 
using SR = const ::nodamushi::svd::Register< STR >
 
using SF = const ::nodamushi::svd::Field< STR >
 
using SE = const ::nodamushi::svd::Enumeration< STR >
 

Public Member Functions

 normalizer (const SD &s)
 
 operator bool () const
 
std::string get_error () const
 

Static Public Member Functions

template<typename ChildType , typename Parent , typename SVD , typename PTR , typename ERROR >
static void emplace_child (Parent &p, const SVD &s, boxvec< ChildType, PTR > &v, did_t g, names &n, ERROR &e)
 enumerate More...
 
template<typename ChildType , typename Parent , typename PTR , typename ERROR >
static did_t copy_child (Parent &p, const ChildType &c, boxvec< ChildType, PTR > &v, did_t g, names &n, ERROR &e)
 
template<typename ChildType , typename Parent , typename SVDChildren , typename PTR , typename ERROR >
static did_t emplace_children (Parent &p, const SVDChildren &vec, boxvec< ChildType, PTR > &dst, ERROR &e)
 
static path< substringget_path (const p &p)
 
static path< substringget_path (const c &c)
 
static path< substringget_path (const r &r)
 
static path< substringget_path (const f &f)
 
static path< substringget_path (const e &e)
 
template<typename T1 , typename T2 >
static void find (string_ref name, const T1 &t, const T2 **ret)
 
template<typename LIST , typename T >
static void _find (string_ref name, const LIST &list, const T **ret)
 
static void find (string_ref n, const d &s, const p **r)
 
static void find (string_ref n, const p &s, const c **r)
 
static void find (string_ref n, const p &s, const r **r)
 
static void find (string_ref n, const c &s, const c **r)
 
static void find (string_ref n, const c &s, const r **r)
 
static void find (string_ref n, const r &s, const f **r)
 
static void find (string_ref n, const f &s, const e **r)
 
template<typename P >
static void findp (string_ref name, const P &t, const P **ret)
 
static void findp (string_ref name, const r &t, const r **ret)
 
static void findp (string_ref name, const c &t, const c **ret)
 
template<typename PSTR , typename T >
static const T * find_derivedFrom_s (const ::nodamushi::svd::path< PSTR > &name, const T &t)
 
template<typename PSTR , typename PARENT , typename T >
static void find_derivedFrom_r (const ::nodamushi::svd::path< PSTR > &p, const PARENT &parent, const T **ret)
 
template<typename PSTR , typename T >
static void find_derivedFrom_m (const ::nodamushi::svd::path< PSTR > &path, const d &d, const T &t, const T **ret)
 
template<typename T , typename ERROR >
static bool set_derivedFrom (d &d, T &t, std::vector< T * > &unresolved, ERROR &e)
 
template<typename T , typename ERROR >
static bool set_derivedFrom_all (d &d, std::vector< T * > &unresolved, ERROR &e)
 
template<typename T , typename ERROR >
static bool _set_derivedFrom (d &d, ERROR &err)
 
template<typename ERROR >
static bool set_derivedFrom (d &d, ERROR &err)
 

Public Attributes

error err
 
d device
 
bool ok
 

Detailed Description

template<typename STRREF, typename STR, typename V>
struct nodamushi::svd::normalized::normalizer< STRREF, STR, V >

Definition at line 316 of file node_container.hpp.

Member Typedef Documentation

◆ C

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::C = ::nodamushi::svd::normalized::Cluster<STRREF>

Definition at line 74 of file normalizer.hpp.

◆ D

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::D = ::nodamushi::svd::normalized::Device<STRREF>

Definition at line 72 of file normalizer.hpp.

◆ did_t

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::did_t = typename dim_info::id_t

dim_info.id type

Definition at line 70 of file normalizer.hpp.

◆ E

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::E = ::nodamushi::svd::normalized::Enumeration<STRREF>

Definition at line 77 of file normalizer.hpp.

◆ F

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::F = ::nodamushi::svd::normalized::Field<STRREF>

Definition at line 76 of file normalizer.hpp.

◆ names

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::names = std::unordered_set<::nodamushi::ref<std::string>, ::nodamushi::refhash<std::string> >

Definition at line 68 of file normalizer.hpp.

◆ P

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::P = ::nodamushi::svd::normalized::Peripheral<STRREF>

Definition at line 73 of file normalizer.hpp.

◆ R

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::R = ::nodamushi::svd::normalized::Register<STRREF>

Definition at line 75 of file normalizer.hpp.

◆ SC

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SC = const ::nodamushi::svd::Cluster<STR>

Definition at line 81 of file normalizer.hpp.

◆ SD

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SD = const ::nodamushi::svd::Device<STR,V>

Definition at line 79 of file normalizer.hpp.

◆ SE

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SE = const ::nodamushi::svd::Enumeration<STR>

Definition at line 84 of file normalizer.hpp.

◆ SF

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SF = const ::nodamushi::svd::Field<STR>

Definition at line 83 of file normalizer.hpp.

◆ SP

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SP = const ::nodamushi::svd::Peripheral<STR>

Definition at line 80 of file normalizer.hpp.

◆ SR

template<typename STRREF , typename STR , typename V >
using nodamushi::svd::normalized::normalizer< STRREF, STR, V >::SR = const ::nodamushi::svd::Register<STR>

Definition at line 82 of file normalizer.hpp.

Constructor & Destructor Documentation

◆ normalizer()

template<typename STRREF , typename STR , typename V >
nodamushi::svd::normalized::normalizer< STRREF, STR, V >::normalizer ( const SD s)
inline

Definition at line 795 of file normalizer.hpp.

Member Function Documentation

◆ _find()

template<typename STRREF , typename STR , typename V >
template<typename LIST , typename T >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::_find ( string_ref  name,
const LIST &  list,
const T **  ret 
)
inlinestatic

Definition at line 559 of file normalizer.hpp.

◆ _set_derivedFrom()

template<typename STRREF , typename STR , typename V >
template<typename T , typename ERROR >
static bool nodamushi::svd::normalized::normalizer< STRREF, STR, V >::_set_derivedFrom ( d d,
ERROR &  err 
)
inlinestatic

Definition at line 707 of file normalizer.hpp.

◆ copy_child()

template<typename STRREF , typename STR , typename V >
template<typename ChildType , typename Parent , typename PTR , typename ERROR >
static did_t nodamushi::svd::normalized::normalizer< STRREF, STR, V >::copy_child ( Parent &  p,
const ChildType &  c,
boxvec< ChildType, PTR > &  v,
did_t  g,
names n,
ERROR &  e 
)
inlinestatic

Definition at line 146 of file normalizer.hpp.

◆ emplace_child()

template<typename STRREF , typename STR , typename V >
template<typename ChildType , typename Parent , typename SVD , typename PTR , typename ERROR >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::emplace_child ( Parent &  p,
const SVD &  s,
boxvec< ChildType, PTR > &  v,
did_t  g,
names n,
ERROR &  e 
)
inlinestatic

enumerate

Definition at line 119 of file normalizer.hpp.

◆ emplace_children()

template<typename STRREF , typename STR , typename V >
template<typename ChildType , typename Parent , typename SVDChildren , typename PTR , typename ERROR >
static did_t nodamushi::svd::normalized::normalizer< STRREF, STR, V >::emplace_children ( Parent &  p,
const SVDChildren &  vec,
boxvec< ChildType, PTR > &  dst,
ERROR &  e 
)
inlinestatic

Definition at line 170 of file normalizer.hpp.

◆ find() [1/8]

template<typename STRREF , typename STR , typename V >
template<typename T1 , typename T2 >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  name,
const T1 &  t,
const T2 **  ret 
)
inlinestatic

Definition at line 556 of file normalizer.hpp.

◆ find() [2/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const d s,
const p **  r 
)
inlinestatic

Definition at line 568 of file normalizer.hpp.

◆ find() [3/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const p s,
const c **  r 
)
inlinestatic

Definition at line 569 of file normalizer.hpp.

◆ find() [4/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const p s,
const r **  r 
)
inlinestatic

Definition at line 570 of file normalizer.hpp.

◆ find() [5/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const c s,
const c **  r 
)
inlinestatic

Definition at line 571 of file normalizer.hpp.

◆ find() [6/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const c s,
const r **  r 
)
inlinestatic

Definition at line 572 of file normalizer.hpp.

◆ find() [7/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const r s,
const f **  r 
)
inlinestatic

Definition at line 573 of file normalizer.hpp.

◆ find() [8/8]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find ( string_ref  n,
const f s,
const e **  r 
)
inlinestatic

Definition at line 574 of file normalizer.hpp.

◆ find_derivedFrom_m()

template<typename STRREF , typename STR , typename V >
template<typename PSTR , typename T >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find_derivedFrom_m ( const ::nodamushi::svd::path< PSTR > &  path,
const d d,
const T &  t,
const T **  ret 
)
inlinestatic

Definition at line 634 of file normalizer.hpp.

◆ find_derivedFrom_r()

template<typename STRREF , typename STR , typename V >
template<typename PSTR , typename PARENT , typename T >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find_derivedFrom_r ( const ::nodamushi::svd::path< PSTR > &  p,
const PARENT &  parent,
const T **  ret 
)
inlinestatic

Definition at line 605 of file normalizer.hpp.

◆ find_derivedFrom_s()

template<typename STRREF , typename STR , typename V >
template<typename PSTR , typename T >
static const T* nodamushi::svd::normalized::normalizer< STRREF, STR, V >::find_derivedFrom_s ( const ::nodamushi::svd::path< PSTR > &  name,
const T &  t 
)
inlinestatic

Definition at line 596 of file normalizer.hpp.

◆ findp() [1/3]

template<typename STRREF , typename STR , typename V >
template<typename P >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::findp ( string_ref  name,
const P t,
const P **  ret 
)
inlinestatic

Definition at line 578 of file normalizer.hpp.

◆ findp() [2/3]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::findp ( string_ref  name,
const r t,
const r **  ret 
)
inlinestatic

Definition at line 581 of file normalizer.hpp.

◆ findp() [3/3]

template<typename STRREF , typename STR , typename V >
static void nodamushi::svd::normalized::normalizer< STRREF, STR, V >::findp ( string_ref  name,
const c t,
const c **  ret 
)
inlinestatic

Definition at line 585 of file normalizer.hpp.

◆ get_error()

template<typename STRREF , typename STR , typename V >
std::string nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_error ( ) const
inline

Definition at line 803 of file normalizer.hpp.

◆ get_path() [1/5]

template<typename STRREF , typename STR , typename V >
static path<substring> nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_path ( const p p)
inlinestatic

Definition at line 529 of file normalizer.hpp.

◆ get_path() [2/5]

template<typename STRREF , typename STR , typename V >
static path<substring> nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_path ( const c c)
inlinestatic

Definition at line 532 of file normalizer.hpp.

◆ get_path() [3/5]

template<typename STRREF , typename STR , typename V >
static path<substring> nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_path ( const r r)
inlinestatic

Definition at line 538 of file normalizer.hpp.

◆ get_path() [4/5]

template<typename STRREF , typename STR , typename V >
static path<substring> nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_path ( const f f)
inlinestatic

Definition at line 544 of file normalizer.hpp.

◆ get_path() [5/5]

template<typename STRREF , typename STR , typename V >
static path<substring> nodamushi::svd::normalized::normalizer< STRREF, STR, V >::get_path ( const e e)
inlinestatic

Definition at line 547 of file normalizer.hpp.

◆ operator bool()

template<typename STRREF , typename STR , typename V >
nodamushi::svd::normalized::normalizer< STRREF, STR, V >::operator bool ( ) const
inlineexplicit

Definition at line 802 of file normalizer.hpp.

◆ set_derivedFrom() [1/2]

template<typename STRREF , typename STR , typename V >
template<typename T , typename ERROR >
static bool nodamushi::svd::normalized::normalizer< STRREF, STR, V >::set_derivedFrom ( d d,
T &  t,
std::vector< T * > &  unresolved,
ERROR &  e 
)
inlinestatic

Definition at line 672 of file normalizer.hpp.

◆ set_derivedFrom() [2/2]

template<typename STRREF , typename STR , typename V >
template<typename ERROR >
static bool nodamushi::svd::normalized::normalizer< STRREF, STR, V >::set_derivedFrom ( d d,
ERROR &  err 
)
inlinestatic

Definition at line 730 of file normalizer.hpp.

◆ set_derivedFrom_all()

template<typename STRREF , typename STR , typename V >
template<typename T , typename ERROR >
static bool nodamushi::svd::normalized::normalizer< STRREF, STR, V >::set_derivedFrom_all ( d d,
std::vector< T * > &  unresolved,
ERROR &  e 
)
inlinestatic

Definition at line 686 of file normalizer.hpp.

Member Data Documentation

◆ device

template<typename STRREF , typename STR , typename V >
d nodamushi::svd::normalized::normalizer< STRREF, STR, V >::device

Definition at line 806 of file normalizer.hpp.

◆ err

template<typename STRREF , typename STR , typename V >
error nodamushi::svd::normalized::normalizer< STRREF, STR, V >::err

Definition at line 805 of file normalizer.hpp.

◆ ok

template<typename STRREF , typename STR , typename V >
bool nodamushi::svd::normalized::normalizer< STRREF, STR, V >::ok

Definition at line 807 of file normalizer.hpp.


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