github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

victorliu / AArray

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A PHP style associative array for C++ — Read more

  cancel

http://victor.dyndns.org/code/aarray

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added deep recursion methods, key structure. Input parsing supports 
unquoted string keys. Values which are arrays support direct query of 
count(). 
victorliu (author)
Tue Sep 29 19:10:28 -0700 2009
commit  16c7966e4b9347d512c2d72bbe12366975a20f81
tree    1e9ba0072f7e0825e6286f3afb2682a8e53814d0
parent  80ee4297a60747886f337274db30add52ab0c4d2
AArray /
name age
history
message
file AArray.cpp Loading commit data...
file AArray.h
file AArrayTest.cpp
file README
README
AArray
 Description:
  A PHP styled associative array for C++.
 Details:
  An associative array can behave like a vector, map, hashtable,
  dictionary, list, set, etc. It is a set of key-value pairs where
  the key can be either an integer or a std::string. Internally the
  two types of keys are stored in different structures. In particular,
  accessing an arbitrary integer key will allocate all uninitialized
  integer keys below it to nulls.
    The values can be a variety of types: null (uninitialized), bool,
  int, real (double), string (std::string), or another AArray. In this
  way, multidimensional arrays can be created, as well as tree structures,
  and general hierarchical data structures.
    One of the most powerful features is the serialization/deserialization
  via stream operators. The entire AArray structure can be (human-readably)
  serialized to a stream and then read back in again. This makes the
  AArray an attractive lightweight structured data parser. Also, the
  serialization format can be customized to provide a reasonable syntax
  for hand editting.
 Example:
  AArray array;
  array[3] = AArray::Value("foo"); // elements 0-2 are set to null
  array["It's just another quote"] = AArray::Value(3.426);
  array[2][3][4] = AArray::Value(true);
  AArray array2(array); // deep copy

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server