Sponsored Content
Top Forums Programming Regarding the protected variables access Post 302607831 by Corona688 on Thursday 15th of March 2012 12:00:52 PM
Old 03-15-2012
Also, your class looks a bit wrong too, you omitted the 'struct' from one and omitted the name from the other:

Code:
class cv
{
 protected :
  struct state mystate;
  struct state &m_state;
};

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Read variables from Access table

Hi! I've just started learning shell scripting, and have been somewhat 'thrown in at the deep-end and told to swim' so excuse my complete lack of knowledge and ignorance, but here goes... I've been given a unix script to 'tidy up'. Basically the script consists of the few lines of code being... (2 Replies)
Discussion started by: Sn33R
2 Replies

2. UNIX for Advanced & Expert Users

Access Awk Variables Outside Scope

Sorry in the wrong forum. Moving this to right forum. (2 Replies)
Discussion started by: Amruta Pitkar
2 Replies

3. Shell Programming and Scripting

How to access variables across scripts

Hi All, I have declared a variable in script1 and assign a value for it. In script2 i'll call script1 and then I want the value of variables set in script1. I have tried with export, but in vain. How can I achive this? Below is the two scripts. --script1 #!/usr/bin/ksh echo $1... (1 Reply)
Discussion started by: javaDev
1 Replies

4. Shell Programming and Scripting

Access Awk Variables Outside Scope

My awk script searches for specified patterns in a text file and stores these values into mem variables. Once this is done I want to Insert these values into a table. How can I avail of the variable values outside the scope of awk script.... One method that I have tried is to write the... (7 Replies)
Discussion started by: Amruta Pitkar
7 Replies

5. Shell Programming and Scripting

Access variables from profile file

Hi all, I hav created one profile file in which i have declared some variables i want to knw how can i access these variables into my xyz.ksh file when i am trying to do " echo $variablename " its giving me an empty line i have done export variable also in the profile file. Thanks in... (6 Replies)
Discussion started by: navi
6 Replies

6. Shell Programming and Scripting

problem in access in array variables

hi all, its me again!!! i've requirement like this: i want to create a file & an array with its name having the filename as its substring. here is the test script!! #!/bin/bash touch $1 declare -a $1_rec; echo -n "$1_rec: " read $1_rec; echo $]; now see output: this is when i enter... (7 Replies)
Discussion started by: tprayush
7 Replies

7. Cybersecurity

WebApp secure access to protected files/programs

Hello, I'm working on an embedded linux project that provides a devices that uses an IPSec VPN (using racoon) to connect back to base. The device also hosts a WebApp that allows admin users to change many aspect of the networking setup, including things like the VPN pre-shared-key, IP addresses... (1 Reply)
Discussion started by: salukibob
1 Replies

8. Shell Programming and Scripting

How to access the bash variables in csh

Hi, I am having a primary script which is Bash based. I am calling a csh script from it. Now, their are some variables defined in my bash script which i need in csh. I am unable to do so. Is it possible ? (2 Replies)
Discussion started by: vdhingra123
2 Replies
__gnu_pbds(3)						     Library Functions Manual						     __gnu_pbds(3)

NAME
__gnu_pbds - SYNOPSIS
Classes struct associative_tag class basic_branch struct basic_branch_tag class basic_hash_table struct basic_hash_tag struct basic_invalidation_guarantee struct binary_heap_tag struct binomial_heap_tag class cc_hash_max_collision_check_resize_trigger class cc_hash_table struct cc_hash_tag struct container_error struct container_tag struct container_traits struct container_traits_base struct container_traits_base< binary_heap_tag > struct container_traits_base< binomial_heap_tag > struct container_traits_base< cc_hash_tag > struct container_traits_base< gp_hash_tag > struct container_traits_base< list_update_tag > struct container_traits_base< ov_tree_tag > struct container_traits_base< pairing_heap_tag > struct container_traits_base< pat_trie_tag > struct container_traits_base< rb_tree_tag > struct container_traits_base< rc_binomial_heap_tag > struct container_traits_base< splay_tree_tag > struct container_traits_base< thin_heap_tag > class direct_mask_range_hashing class direct_mod_range_hashing class gp_hash_table struct gp_hash_tag class hash_exponential_size_policy class hash_load_check_resize_trigger class hash_prime_size_policy class hash_standard_resize_policy struct insert_error struct join_error class linear_probe_fn class list_update struct list_update_tag class lu_counter_policy class lu_move_to_front_policy struct null_node_update struct null_type struct ov_tree_tag struct pairing_heap_tag struct pat_trie_tag struct point_invalidation_guarantee class priority_queue struct priority_queue_tag class quadratic_probe_fn struct range_invalidation_guarantee struct rb_tree_tag struct rc_binomial_heap_tag struct resize_error class sample_probe_fn class sample_range_hashing class sample_ranged_hash_fn class sample_ranged_probe_fn class sample_resize_policy class sample_resize_trigger class sample_size_policy class sample_tree_node_update struct sample_trie_access_traits class sample_trie_node_update struct sample_update_policy struct sequence_tag struct splay_tree_tag struct string_tag struct thin_heap_tag class tree class tree_order_statistics_node_update struct tree_tag class trie class trie_order_statistics_node_update class trie_prefix_search_node_update struct trie_string_access_traits struct trie_tag struct trivial_iterator_tag Typedefs typedef void trivial_iterator_difference_type Functions void __throw_container_error () void __throw_insert_error () void __throw_join_error () void __throw_resize_error () Detailed Description GNU extensions for policy-based data structures for public use. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 __gnu_pbds(3)
All times are GMT -4. The time now is 09:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy