Exemple #1
0
Color::Proxy Color::operator[](const style::palette &paletteOverride) const {
	auto index = main_palette::indexOfColor(*this);
	return Proxy((index >= 0) ? paletteOverride.colorAtIndex(index) : (*this));
}
Exemple #2
0
RInside::Proxy RInside::parseEvalNT(const std::string & line) {
    SEXP ans;
    parseEval(line, ans);
    return Proxy( ans );
}
			Proxy operator [] (uint i)
			{
				return Proxy( container, i );
			}
Exemple #4
0
 List::Proxy List::operator[] ( size_type i )
 {
     return (Proxy(*this, i));
 }
Exemple #5
0
 Proxy operator[](const std::size_t index)
 {
     return Proxy(array_of_arrays[index]);
 }
Exemple #6
0
	void DiscardProxy() { Proxy(Ip::Endpoint()); }
Exemple #7
0
int main() {
    bool& ref = Proxy();
}
Exemple #8
0
Object::Proxy Object::operator[] (Json::StaticString const& key)
{
    return Proxy (*this, std::string (key));
}
void PhysicsWorld::QueryRegion(const Math::Vector3 &minPoint, const Math::Vector3 &maxPoint, RegionQueryResult &result)
{
	return mBroadphase->QueryRegion(Proxy(minPoint, maxPoint), result);
}
Exemple #10
0
Grid::Proxy Grid::operator[](int index)
{
    assert (index >= 0 && index < gridSize);
    return Proxy(dynamicGrid[index]);
}
Exemple #11
0
Object::Proxy Object::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
UserManagementServer::UserManagementServer(void)
{
	Proxy("UserAce");
}
Exemple #13
0
PropertyStream::Proxy PropertyStream::Map::operator[] (std::string const& key)
{
    return Proxy (*this, key);
}
Exemple #14
0
map::Proxy map::operator[](int key)
{
	return Proxy(*this, key);
}
Exemple #15
0
const map::Proxy map::operator[](int key) const
{
	return Proxy(const_cast<map &>(*this), key);
}
Exemple #16
0
#define X(op, bits) bits,
static unsigned char bits[] = { ENUMBINDING };
#undef X

/*
 * Example 4
 *
 * in case the name X has already been taken somewhere
 */
#define Proxy(apply) \
	apply(foo) \
	apply(bar)

#define apply(a) K##a,
enum { Proxy(apply) };
#undef apply

#define apply(a) #a,
static char *str_vals[] = { Proxy(apply) };
#undef apply 

int main()
{
	printf("Value of key 2 is: %s\n", vals[KEY2]);

	printf("String name of dog is: \"%s\"\n", animal_names[KDog]);
	
	return 0;
}