Questions tagged [qualifiers]

A qualifier adds an extra "quality", such as specifying volatility or constness of a variable

They're similar to adjectives: "a fickle man", "a volatile int", "an incorruptible lady", "a const double". With or without a qualifier, the variable itself still occupies the same amount of memory, and each bit has the same interpretation or contribution to the state/value. Qualifiers just specify something about how it may be accessed or where it is stored

Credits goes to Tony_D @ What is the meaning of "qualifier"?

211 questions
1
vote
1 answer

Multiple Inheritance and inherited data member in the derived class constructor initialisation list

I have written a simple program that deals with repeated inheritance. I use a base class, two child classes and a grandchild class class Parent{ public: Parent(string Word = "", double A = 1.00, double B = 1.00): sWord(Word), dA(A),…
1
vote
3 answers

Broken VB6 Collection. Invalid Qualifier

I am attempting to use a collection to store only one unique copy of each string returned from a database query. When I come across a new one. I see if I already have it. If I do not, I add it to my collection and to my combobox. else I keep…
jth41
  • 3,808
  • 9
  • 59
  • 109
1
vote
0 answers

How can the class that @Injects a @Dependent class pass information to its constructor?

My problem is probably best explained with some sample code: @Named public class Search { @Inject @Select(Type.SEARCH) private Criteria criteria; } @Named public class Selection { @Inject @Select(Type.SELECTION) private Criteria…
mabi
  • 5,279
  • 2
  • 43
  • 78
1
vote
0 answers

Android layout height qualifier not being selected accurately

I have an app for Android 4.0 that runs in landscape mode only. In one activity, I want to present different UIs depending on how much height is available. I've set up the appropriate layout qualifier directories and they are being selected, but not…
Brian Rak
  • 4,912
  • 6
  • 34
  • 44
1
vote
1 answer

Wrong resource folder being chosen by Android system

I've been having problems with my app on a 7 inch device. For debugging purposes I've added a toast message that displays after the app loads, to tell me which resource folder the app is using, ie. which qualifiers. I have strings.xml files in each…
Rob K
  • 294
  • 2
  • 10
1
vote
1 answer

Invalid Qualifier for String.Add in Outlook VBA

You all have been so helpful, and I was wondering whether I might trouble you a bit more. I have nearly completed my conversion from VB.net to VBA for Outlook, and in order to complete that, I need some information on what exactly a particular piece…
Wolves
  • 515
  • 3
  • 7
  • 15
1
vote
1 answer

ARC property qualifier

I'm relatively new to ARC. I'm making an UIView subclass, that will have two labels (title and subtitle). I don't want to publicly expose the labels as properties, only their text. I'm currently using this: @interface MyView : UIView @property…
Cyrille
  • 25,014
  • 12
  • 67
  • 90
1
vote
1 answer

Android resource size qualifier

I unable to get the values from "values-sw480dp" nor on my sony Xperia device which is 480 x 854 neither on Samsung galaxy tab which is 600 x 1024. But able to get on Motorola Xoom which is 1280 x 752. e.g res/values-sw480dp/strings.xml/
vinay kumar
  • 1,451
  • 13
  • 33
1
vote
1 answer

perl -- sorting a comma-separated source that has "qualifiers"

I'm a weak perl user (and manipulator of arrays), and this problem is stumping me. Hope someone can help! I have a source file with the following type of data (greatly simplified): URL: 22489196 Keywords: Ball, Harga, Call, Dall, Eall, Jarga,…
1
vote
2 answers

How to make an Answer Key XML for a multi-answer checkbox QuestionSpec?

I'm making a Qualification Test with a multi-answer checkbox question. checkbox
Linda
  • 143
  • 1
  • 7
1
vote
4 answers

How to assign a text qualifier in a flat file destination?

We have an SSIS package which reads from a DB, creates a flat file from that info, and drops it to a file server. I recently made an update to the package's query which is used against the DB, adjusted the column mappings, and placed it under the…
Ben
  • 704
  • 4
  • 10
  • 25
1
vote
2 answers

Android XML: Why can't we type @drawable-mdpi, and instead, we must type @drawable?

I see the folders: drawable-hdpi drawable-mdpi drawable-ldpi I have seen countless threads of "Type @drawable/some_image.png" and "Create a drawable folder in res." But never did I see a question about XML referring to any drawable folders with…
tom_mai78101
  • 2,383
  • 2
  • 32
  • 59
0
votes
2 answers

C++: const volatile methods

I'm having a brain cramp: struct MyStruct { int x; ... inline int getX1() const { return x; } inline int getX2() const volatile { return x; } }; volatile MyStruct myStruct; I understand that the compiler will let me call…
Jason S
  • 184,598
  • 164
  • 608
  • 970
0
votes
1 answer

Using @Context for a mapstruct mapper is considered like an additional parameter

I have a mapper where I'm trying to use a repository as context so I can fetch my object during the mapping. I spent a lot of time searching how context work and this is what I came up with @Mapper(componentModel =…
Kpo
  • 147
  • 1
  • 10
0
votes
0 answers

What is ONE possible use case for the const&& method qualifier?

I award 100 reputation to the person who can show me one sensible example of how a const && method-qualifier could be used in real world code which cannot be done more elegantly by using just const& or && overloads. Nonsensible example #include…
glades
  • 3,778
  • 1
  • 12
  • 34