DTNMA Reference Tools v2.2.0 - 5.ga116361
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
cace_ari_visit_ctx_t Struct Reference

Context used for cace_ari_visitor_t functions. More...

#include <algo.h>

+ Collaboration diagram for cace_ari_visit_ctx_t:

Data Fields

const cace_ari_tparent
 The parent value of the one being visited.
 
size_t depth
 The depth of the current value relative to the original value.
 
bool is_map_key
 True if the parent is an AM literal and this is a map key.
 
void * user_data
 User-supplied pointer to cace_ari_visit()
 

Detailed Description

Context used for cace_ari_visitor_t functions.

Field Documentation

◆ depth

size_t cace_ari_visit_ctx_t::depth

The depth of the current value relative to the original value.

Depth 0 is the top, original value. Depth 1 is a literal container (e.g. AC) member or a reference parameter. Increasing recursively.

Referenced by cace_ari_visit_ari().

◆ is_map_key

bool cace_ari_visit_ctx_t::is_map_key

True if the parent is an AM literal and this is a map key.

Referenced by cace_amm_builtin_validate_visit_ari(), and cace_ari_visit_am().

◆ parent

const cace_ari_t* cace_ari_visit_ctx_t::parent

The parent value of the one being visited.

If this is a literal with a container type, the visited value is a member of that container. If this is an object reference, the visited value is a parameter.

Referenced by cace_ari_visit(), and cace_ari_visit_ari().

◆ user_data

void* cace_ari_visit_ctx_t::user_data

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