Questions tagged [members]
175 questions
5
votes
2 answers
Eclipse Members Sort Order vs Oracle Java Code Conventions
In Eclipse, the default "Members Sort Order" (in Preferences - Java - Appearance - Members Sort Order) is:
Types
Static Fields
Static Initializers
Static Methods
Fields
Initializers
Constructors
Methods
But Oracle's Java Code Conventions say the…

Steve Chambers
- 37,270
- 24
- 156
- 208
5
votes
1 answer
Is it wrong to use templates with the implicit assumption that certain member functions of the parameterized type will be defined?
Say you write a really bad class
template
class IntFoo
{
T container ;
public:
void add( int val )
{
// made an assumption that
// T will have a method ".push_front".
container.push_front( val ) ;
}
} ;
Ignore the…

bobobobo
- 64,917
- 62
- 258
- 363
4
votes
3 answers
How should I construct C++ members that depend on each other?
I have a class using a library for communication that's like so:
class Topic {
Topic( Type T, String name );
};
class Reader {
Reader (Topic, String name);
};
class Writer {
Writer (Topic, String name);
};
I want to make a talker class like…

user535474
- 61
- 2
4
votes
2 answers
Can F# type members reference each other?
I was wondering if there is a way to let type members reference each other. I would like to write the following program like this:
type IDieRoller =
abstract RollDn : int -> int
abstract RollD6 : int
abstract RollD66 : int
type…

McMuttons
- 871
- 7
- 22
4
votes
0 answers
get user groups members using Google Directory API
I'm using the Google Directory API, here is the code that I'm using and I get the user info. But I need to get also the groups that the user is member.
My question is how can I do that when I have the user. I have another code to get the members,…

Luis A. Moy R
- 41
- 1
4
votes
3 answers
redis remove particular members from set
I have a set of members. For example a set named "college" with names of 20 colleges.
Now how do I delete only a subset e.g. a selected set of 10 colleges, from the set?
I am running redis server of v2.4.5
The documentation found here…

Gagan
- 4,278
- 7
- 46
- 71
3
votes
6 answers
Python Add Elements of a List (or Set, or whatever Data Type is appropriate)
Is there an easy way to add the members of two equally sized lists (or tuple or whatever data type would work best)?
I have, for example a and b with 2 elements:
a = (0, 10)
b = (0, -10)
I want to add them and get as result:
result = (0, 0)
NOT…

Jojo Jonas
- 225
- 2
- 4
- 15
3
votes
3 answers
labeling a group of members as private/public in c#
in a c++ class declaration, you can label a group of members as private or public, e.g.
private:
int x;
double y;
seems like there's no way to do this in c#. am I wrong?
bobsmith
3
votes
2 answers
CURRENTMEMBER function gives an error in MDX
I have my dimension as below:
I want to get one market at a time.
When I use this query, I am getting the list of all the members as I am using .MEMBERS function:
SELECT [MARKET BASE].[Market Base].[Market Base].MEMBERS ON 1,
[Measures].[% OTC…

Yousuf Sultan
- 3,055
- 8
- 35
- 63
3
votes
2 answers
How can I get all (non-final) object vals and subobject vals using reflection in Scala?
Note: This question is not a duplicate of How can I get all object vals and subobject vals using reflection in Scala?
The answer provided in that question only works for final members.
For example:
scala> object Settings {
| val Host =…

Sudheer Aedama
- 2,116
- 2
- 21
- 39
3
votes
2 answers
C++ Invalid use Of Member Function (Did You Forget The '()'?)
I'm having trouble getting my program to compile. The error is happening on line 165-177. All I added was the test for the presence of letters and I got an error, hope you can help!
Full Code http://pastebin.com/embed.php?i=WHrSasYk
(Attached below…

Steven O'Riordan
- 61
- 1
- 1
- 2
3
votes
3 answers
How to access a private member in the baseclass from a subclass with inheritance ( C++ )
I am currently busy with inheritance and I'm working with a base class called Vehicle and a subclass called Truck. The subclass is inheriting from the base class. I am managing with the inheritance of the public members of Vehicle but can't access…

Joe_B
- 219
- 3
- 10
- 19
3
votes
1 answer
PHP- can't see class member after include
ok i have an index.php as so:
page->render();
foreach($page as $var => $value) {
echo $var ." is ". $value."
"; } ?> the obj creation for site and page is in the stdlib file and is obviously…
"; } ?> the obj creation for site and page is in the stdlib file and is obviously…

user3512603
- 31
- 4
3
votes
2 answers
Identical Class Member Names and Function Argument Names in C++
I have a simple object that holds some [public] data.
I want to keep my interface clean, so I don't want to pre-/post- fix anything to the names of the publically accessible variables nor to the names of my function arguments.
That said, I ended up…

eciDive
- 33
- 3
3
votes
4 answers
C# accessing class members after casting
I've been working with C# and XAML and was wondering if there was any better way to access members of a class after casting them. This is an example of what I'd normally end up having to do:
private void MyButton_Clicked(object sender, …

Enfyve
- 916
- 10
- 22